<!doctype html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>密码错误</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            margin-top: 100px;
        }
        #message {
            font-size: 24px; /* 字号变大 */
            color: red; /* 数字变红 */
            margin-top: 80px; /* 距离顶部 80px */
        }
    </style>
</head>
<body>
    <div id="message">密码错误，请 <span id="countdown">5</span> 秒后尝试重新登录</div>

    <script>
        let countdown = 5;
        const countdownElement = document.getElementById('countdown');

        function updateCountdown() {
            countdown--;
            countdownElement.textContent = countdown;
            if (countdown === 0) {
                window.location.href = '/'; // 倒计时结束，跳转登录页面
            }
        }

        setInterval(updateCountdown, 1000); // 每秒更新倒计时
    </script>
</body>
</html>
